<?php

namespace app\utils\Service\Tencent;

class Module
{
    protected $message = '';
    protected $data = [];

    protected function success($message = '', $data = [])
    {
        $this->message = $message;
        $this->data = $data;
        return true;
    }

    protected function error($message = '', $data = [])
    {
        $this->message = $message;
        $this->data = $data;
        return false;
    }

    public function getMessage()
    {
        return $this->message;
    }

    public function getData()
    {
        return $this->data;
    }
}